package com.ssh.service;

import java.util.List;

import com.ssh.dao.IContenttypeDao;
import com.ssh.model.Contenttype;

public class ContenttypeService implements IContenttypeService {
	private IContenttypeDao contenttypeDao=null;
	
	/* (non-Javadoc)
	 * @see com.ssh.service.IContenttypeService#save(com.ssh.model.Contenttype)
	 */
	@Override
	public  void save(Contenttype ct){
		contenttypeDao.save(ct);
	}

	/* (non-Javadoc)
	 * @see com.ssh.service.IContenttypeService#delete(com.ssh.model.Contenttype)
	 */
	@Override
	public  void delete(Contenttype ct){
		contenttypeDao.delete(ct);
	}

	/* (non-Javadoc)
	 * @see com.ssh.service.IContenttypeService#findById(java.lang.String)
	 */
	@Override
	public  Contenttype findById(java.lang.String cid){
		return contenttypeDao.findById(cid);
	}
	
	/* (non-Javadoc)
	 * @see com.ssh.service.IContenttypeService#findAll()
	 */
	@Override
	public  List findAll(){
		return contenttypeDao.findAll();
	}
	
	/* (non-Javadoc)
	 * @see com.ssh.service.IContenttypeService#attachDirty(com.ssh.model.Contenttype)
	 */
	@Override
	public void attachDirty(Contenttype ct){
		contenttypeDao.attachDirty(ct);
	}

	public IContenttypeDao getContenttypeDao() {
		return contenttypeDao;
	}

	public void setContenttypeDao(IContenttypeDao contenttypeDao) {
		this.contenttypeDao = contenttypeDao;
	}

	
	


}
